package com.seaboxdata.utils;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author zhaoliangtao
 * @Date 2018/10/31 14:29
 */
public class Test {
    public static void main(String[] args) {
        try {
            // 网关地址
            String url = "http://10.248.79.56/ebus/hcp/busi/app/getEvalList";
            // 应用的appKey
            String appKey = "hcp_dpsjgx";
            // 应用的密钥
            String appToken = "826389604620828673";
            // 请求参数
            Map<String,Object> map = new HashMap<>();
            map.put("appCode","hcp_dpsjgx");
            map.put("page",1);
            map.put("size",1000);
            map.put("startDate","2021-04-01 00:00:00");
            map.put("endDate","2021-04-03 00:00:00");
            map.put("flag","1");
            // 调用接口
            String res = HttpUtil.doPost(url, map, appKey, appToken);
            System.out.println(res);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
